package com.wicket.okrframework.biz.service.dto.common;


import com.wicket.okrframework.common.dto.BaseDto;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.Objects;


/**
 * @desc BehaviorTypeDto
 * @使用场景
 */
@Data
public class BehaviorTypeDto extends BaseDto implements Serializable {

    /**
     * 行为类型ID:
     */
    @ApiModelProperty("行为类型ID")
    private String behaviorTypeId;

    /**
     * 行为类型编码:
     */
    @ApiModelProperty("行为类型编码")
    private String behaviorTypeCode;

    /**
     * 行为类型名称:
     */
    @ApiModelProperty("行为类型名称")
    private String behaviorTypeName;

    /**
     * 主体生命周期:
     */
    @ApiModelProperty("主体生命周期")
    private String subjectLifeCycle;

    /**
     * 操作人就职记录ID:
     */
    @ApiModelProperty("操作人就职记录ID")
    private String operationInductionId;

    /**
     * 操作时间:
     */
    @ApiModelProperty("操作时间")
    private Date operateTime;

    /**
     * 关联业务应用ID:
     */
    @ApiModelProperty("关联业务应用ID")
    private String bizAppId;

    /**
     * 业务应用标识:
     */
    @ApiModelProperty("业务应用标识")
    private String bizAppCode;

    /**
     * 业务应用名称:
     */
    @ApiModelProperty("业务应用名称")
    private String bizAppName;

    @Override
  public boolean equals(Object o) {
      if (this == o) return true;
      if (o == null || getClass() != o.getClass()) return false;
      if (!super.equals(o)) return false;
      BehaviorTypeDto that = (BehaviorTypeDto) o;
      return  behaviorTypeId == that.behaviorTypeId&&behaviorTypeCode == that.behaviorTypeCode&&behaviorTypeName == that.behaviorTypeName&&subjectLifeCycle == that.subjectLifeCycle&&operationInductionId == that.operationInductionId&&operateTime == that.operateTime&&bizAppId == that.bizAppId&&bizAppCode == that.bizAppCode&&bizAppName == that.bizAppName;
    }

    @Override
  public int hashCode() {
      return Objects.hash(super.hashCode(), behaviorTypeId,behaviorTypeCode,behaviorTypeName,subjectLifeCycle,operationInductionId,operateTime,bizAppId,bizAppCode,bizAppName);
    }

}
